package com.raycloud.dao;

import java.util.List;

import com.raycloud.domain.User;

public interface UserDao {
	public void insertUser(User user);
	
	public User getUser(String email, String password);
	
	public User getUserById(long id);
	
	public List<User> queryTopNUsers(int limitCount, long id);
	
	/**
	 * 修改用户计数相关的字段
	 * @param id
	 * @param offset 相差的值 
	 * @param type 类型 msg是用户微博消息数，follow是关注数，fans是粉丝数
	 */
	public void updateFieldCount(long id, int offset, String type);
}
